/* Hero Section with Horizontal Image Slider - Smooth, Non-Lazy Movement */
.hero {
    position: relative;
    height:300px;
    overflow: hidden;
    margin-bottom: 40px;
}

/* Slider Container */
.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Slides Wrapper - Optimized for Smooth Movement */
.slides-wrapper {
    display: flex;
    width: 300%;
    height: 100%;
    will-change: transform;  /* Optimizes for animation */
    backface-visibility: hidden;  /* Prevents flickering */
    transform: translateZ(0);  /* Enables hardware acceleration */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Individual Slide */
.slide {
    width: 33.333%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    will-change: transform;
    backface-visibility: hidden;
}

/* Slide 1 */
.slide-1 {
    background-image: url('../images/iphoness.png');
}

/* Slide 2 */
.slide-2 {
    background-image: url('../images/wines.png');
}

/* Slide 3 */
.slide-3 {
    background-image: url('../images/jeans.png');
}

/* Optional overlay for better text visibility */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 13, 10, 0.603);
    z-index: 10;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 800px;
    width: 90%;
    text-align: center;
    z-index: 20;
    color: white;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.search-box {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    border-radius: 0;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    font-size: 15px;
    outline: none;
}

.search-input:focus {
    outline: none;
}

.search-btn {
    background: #f39c12;
    color: white;
    border: none;
    padding: 14px 28px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    font-size: 15px;
}

.search-btn:hover {
    background: #e67e22;
}

/* Slide Indicators/Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #f39c12;
    width: 24px;
    border-radius: 5px;
}

.dot:hover {
    background: #f39c12;
}

/* Navigation Arrows - Optional but recommended */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    font-size: 20px;
}

.slider-nav:hover {
    background: #f39c12;
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    color: #2c3e50;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h2 i {
    color: #f39c12;
    font-size: 20px;
}

.view-all {
    color: #f39c12;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.view-all:hover {
    text-decoration: underline;
}

.count-badge {
    background: #f39c12;
    color: white;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
}

/* Featured Categories - 6 Columns */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.category-card {
    background: white;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: block;
    border-radius: 8px;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.category-img {
    height: 140px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.category-card:hover .category-img img {
    transform: scale(1.05);
}

.category-img i {
    color: #f39c12;
    font-size: 40px;
}

.category-info {
    padding: 15px;
}

.category-info h3 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-meta {
    display: flex;
    justify-content: space-between;
    color: #7f8c8d;
    font-size: 12px;
}

/* All Categories */
.categories-list {
    background: white;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.category-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.category-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.category-group-title {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.category-group-title a {
    color: #2c3e50;
    text-decoration: none;
}

.category-group-title a:hover {
    color: #f39c12;
}

/* Subcategories - 6 Columns */
.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.subcategory-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    text-decoration: none;
    color: #555;
    transition: all 0.3s;
    gap: 8px;
}

.subcategory-item:hover {
    background: #f39c12;
    color: white;
    transform: translateX(2px);
}

.subcategory-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #f39c12;
}

.subcategory-item:hover .subcategory-icon {
    color: white;
}

.subcategory-info {
    flex: 1;
    min-width: 0;
}

.subcategory-name {
    font-weight: 500;
    margin-bottom: 2px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subcategory-count {
    font-size: 10px;
    opacity: 0.7;
}

.subcategory-item:hover .subcategory-count {
    color: rgba(255,255,255,0.9);
}

.no-subcategories {
    color: #95a5a6;
    font-style: italic;
    padding: 15px;
    text-align: center;
    background: #f8f9fa;
    font-size: 13px;
    grid-column: 1 / -1;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    background: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.empty-state i {
    font-size: 48px;
    color: #bdc3c7;
    margin-bottom: 15px;
}

.empty-state h3 {
    color: #7f8c8d;
    margin-bottom: 8px;
    font-size: 20px;
}

.empty-state p {
    color: #95a5a6;
    margin-bottom: 20px;
    font-size: 14px;
}

.btn {
    padding: 10px 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: #f39c12;
    color: white;
}

.btn-primary:hover {
    background: #e67e22;
}

/* Responsive */
@media (max-width: 1200px) {
    .featured-grid,
    .subcategories-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1000px) {
    .featured-grid,
    .subcategories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        height: 400px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .featured-grid,
    .subcategories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .section-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .search-box {
        flex-direction: column;
        gap: 8px;
    }
    
    .search-input,
    .search-btn {
        border-radius: 0;
    }
    
    .slider-nav {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

@media (max-width: 550px) {
    .featured-grid,
    .subcategories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero {
        height: 350px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
}

@media (max-width: 360px) {
    .featured-grid,
    .subcategories-grid {
        grid-template-columns: 1fr;
    }
}